package com.s69.appback.service;

import com.s69.appback.entity.AppVersion;
import com.s69.appback.mapper.AppVersionDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppVersionService {
    @Autowired
    AppVersionDao versionDao;

    public void addVersions(AppVersion appVersion) {
        versionDao.insert(appVersion);
    }

    public List<AppVersion> getList(Long appid) {
        AppVersion version = new AppVersion();
        version.setAppid(appid);
        return versionDao.queryAllBy(version);
    }
}
